package com.fs.sale.controller;


import com.fs.common.core.vo.AjaxResult;
import com.fs.sale.pojo.PackageType;
import com.fs.sale.service.IPackageTypeService;
import com.fs.sale.service.impl.PackgeTypeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-08-15
 */
@Controller
@RequestMapping("/packge")
public class PackageTypeController {
  @Autowired
    IPackageTypeService packageTypeService;

  @PostMapping("list")
    public AjaxResult select(){
      AjaxResult ajaxResult=new AjaxResult();
      List<PackageType> packageTypeList=packageTypeService.select();
      ajaxResult.put("packageTypeList",packageTypeList);
      return ajaxResult;
  }
}
